/**
 * 
 */
package me.joshua.demo4j.spring.context.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @author <a href="mailto:daonan.zhan@gmail.com">Joshua Zhan</a>
 * 
 */
@Configuration
@Profile("dev")
public class AppConfig {

	@Bean
	public DemoService demoService() {
		DemoService demoService = new DemoService();
		demoService.setName("devDemoService");
		return demoService;
	}
}
